import http from '@/utils/http';

const organization = {
  //获取非岗位的组织机构
  getNoPostOrganization() {
    let url = '/Organization/GetNoPostOrganization';
    return http.get(url);
  },
  //组织机构视图
  query(params: any) {
    let url = '/Organization/Query';
    return http.get(url, params);
  },
  //组织机构详情
  detail(id: Number) {
    let url = '/Organization/Detail';
    let params = { id: id };
    return http.get(url, params);
  },
  //组织机构保存
  save(organization: Object) {
    let url = '/Organization/Save';
    return http.post(url, organization);
  },
};
export default organization;
